package com.base.andlang2.http

import com.base.andlangcore.http.ApiClient
import com.base.andlangcore.http.BaseResponse
import com.google.gson.JsonObject
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

interface AppApi {
    /**
     * 审核信息
     */
    @Headers("Content-Type: application/json;charset=UTF-8")
    @POST("core/appV107Index")
    suspend fun reqHomeData(@Body request: RequestBody): BaseResponse<JsonObject>

    companion object {
        private val api:AppApi by lazy { ApiClient.create(AppApi::class.java) }
        fun create(): AppApi {
            return api
        }
    }
}